﻿@model Category
<ul id="newcategoryholder">
    <li key="@Model.ID"><a href="javascript:void(0);" title="@Model.Title">
        <img src="@Url.Content("~/content/images/icon_cat_16.gif")" class="d-treenode-img" alt="@Model.Title" />
        <span class="d-treenode-text">
            @Model.Title </span></a></li>
</ul>
<script type="text/javascript">
    function _addCategoryNodeToTreeView() {
        var newNode = $("#newcategoryholder").children("li");
        $("#CategoryTree").dtree("addNode", newNode);
        $("#CategoryTree").dtree("select", newNode);
    }
</script>
@{Html.RegisterStartupScript("_addCategoryNodeToTreeView();"); }
@Html.StartupScripts()
